<template>
  <page-form :x-uri="uri" :x-tabs="tabs" :custom-components="custom" :bind-data="datas" :reset-btn-text="false" />
</template>

<script>
import PageForm from '@public/template/page_form.vue';
import Links from './components/links.vue';
export default {
  components: {
    PageForm
  },
  data() {
    return {
      uri: '/admin/site/navi/top/' + this.$route.params.pid + '/create',
      tabs: [
        {
          title: '头部导航配置',
          uri: '/site/navi/top',
          meta: {
            permission: 'site.pc.navi.top'
          }
        },
        {
          title: '新建导航',
          uri: '/site/navi/top/' + this.$route.params.pid + '/create',
          meta: {
            permission: 'site.pc.navi.top.add'
          }
        }
      ],
      custom: {
        content: Links
      },
      datas: {
        data_type: 0,
        content: 0,
        content_text: ''
      }
    };
  }
};
</script>
